package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 抖音订单支付信息实体类
 */
@Data
@TableName("t_tiktok_order_payments")
public class TiktokOrderPaymentDo {

    @TableId(value = "order_id", type = IdType.NONE)
    private String orderId; // 订单ID（外键）

    @TableField("currency")
    private String currency; // 货币类型（如 IDR）

    @TableField("sub_total")
    private String subTotal; // 商品总金额

    @TableField("shipping_fee")
    private String shippingFee; // 运费

    @TableField("seller_discount")
    private String sellerDiscount; // 卖家折扣

    @TableField("platform_discount")
    private String platformDiscount; // 平台折扣

    @TableField("total_amount")
    private String totalAmount; // 总金额

    @TableField("original_total_product_price")
    private String originalTotalProductPrice; // 原始商品总价

    @TableField("original_shipping_fee")
    private String originalShippingFee; // 原始运费

    @TableField("shipping_fee_seller_discount")
    private String shippingFeeSellerDiscount; // 运费卖家折扣

    @TableField("shipping_fee_platform_discount")
    private String shippingFeePlatformDiscount; // 运费平台折扣

    @TableField("shipping_fee_cofunded_discount")
    private String shippingFeeCofundedDiscount; // 运费共付折扣

    @TableField("tax")
    private String tax; // 税费

    @TableField("small_order_fee")
    private String smallOrderFee; // 小额订单费用

    @TableField("shipping_fee_tax")
    private String shippingFeeTax; // 运费税

    @TableField("product_tax")
    private String productTax; // 商品税

    @TableField("retail_delivery_fee")
    private String retailDeliveryFee; // 零售配送费

    @TableField("buyer_service_fee")
    private String buyerServiceFee; // 买家服务费

    @TableField("handling_fee")
    private String handlingFee; // 处理费

    @TableField("shipping_insurance_fee")
    private String shippingInsuranceFee; // 物流保险费

    @TableField("item_insurance_fee")
    private String itemInsuranceFee; // 商品保险费
}